package org.example.packagea.service;

import org.example.packagea.aspect.HahMen;
import org.example.packagea.entity.Apple;
import org.springframework.stereotype.Service;

@Service
public class MyServiceImpl implements IService<Apple> {
    public void add(String name){
        System.out.println("add name");
    }

    @HahMen(name = "jb")
    public void del(){
        System.out.println("del xxx");
    }

    @Override
    public Apple get() {
        Apple apple = new Apple();
        apple.setColor("red");
        apple.setPrice(100);
        return apple;
    }
    public <T> void zero(T dd){
        System.out.println(dd);
    }
}
